package com.hfy.music.feign;

import com.hfy.feign.IMusicClient;
import com.hfy.model.Bo.AlbumBo;
import com.hfy.music.mapper.AlbumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ author 韩
 * time: 2024/12/28 3:51
 */

@RestController
@RequestMapping("/feign/music")
public class MusicClient implements IMusicClient {

    @Autowired
    private AlbumMapper albumMapper;

    @GetMapping("/page/album")
    public List<AlbumBo> pageAlbumByIdList(@RequestParam List<Integer> idList) {

        return albumMapper.selectAlbumInfoByIdList(idList);
    }
}
